package com.googlecode.gwtbb.client.only.widget.form;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Dec 21, 2008
 */
public abstract class SingletonDialogFormStarter extends DialogFormStarter {
	public abstract void restartForm();

	public void startProcess() {
		if (form == null) {
			form = createForm();
			dialog = new FormDialog(form);
			//lightBox = new LightBox(dialog);
			dialog.setFormWidget(form);
		}
		restartForm();
		//lightBox.show();
		dialog.center();
	}
}